﻿<UserControl x:Class="HomeUX.ClientAppSupport.DevicesScreen"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:c="clr-namespace:HomeUX.Controls"
    Width="800" Height="530" IsTabStop="False">
    <Grid x:Name="LayoutRoot" Background="{StaticResource DefaultBackgroundBrush}">

        <c:TouchListBox Height="400" HorizontalAlignment="Stretch" VerticalAlignment="Top" Margin="50,50,50,0"
                        ItemAction="ToggleBooleanValue" SyncPath="DeviceStatus" ItemsConfigurationSyncPath="."
                        x:Name="DeviceStatusListBox" SelectionMode="MultiSelect"
                        ScrollSliderVisibility="CollapseAlways" DragZoneVisibility="Hidden">
            <c:TouchListBox.ItemStyle>
                <Style TargetType="TextBlock">
                    <Setter Property="Margin" Value="4,0,4,0" />
                    <Setter Property="TextWrapping" Value="Wrap" />
                </Style>
            </c:TouchListBox.ItemStyle>
        </c:TouchListBox>
        <TextBlock HorizontalAlignment="Left" Margin="50,0,0,60" VerticalAlignment="Bottom" Text="Busy devices:" TextWrapping="Wrap"/>
        <TextBlock x:Name="BusyDevicesTextBlock" Height="68" Margin="137,0,50,8" VerticalAlignment="Bottom" Text="(None)" TextWrapping="Wrap"/>

    </Grid>

</UserControl>

